package com.kyleswebspace.propertyanalyzer.gui;

import java.awt.Color;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JPanel;

import com.kyleswebspace.propertyanalyzer.config.ColorBox;
import com.kyleswebspace.propertyanalyzer.model.DataModel;



public class MainPanel extends JPanel {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 2665797935561947128L;
	private final Color backgroundColor = ColorBox.backgroundPanelColor;
	
	public MainPanel(DataModel dm, FocusMediator fm) {
		this.setLayout(new GridBagLayout());
		GridBagConstraints constraints = new GridBagConstraints();
		constraints.anchor = GridBagConstraints.NORTHWEST;
		constraints.insets = new Insets(0, 0, 0, 0);
		constraints.ipadx = 0;
		constraints.ipady = 0;
		
		this.setBackground(backgroundColor);
		
		constraints.gridx = 0;
		constraints.gridy = 0;
		this.add(new LeftMainPanel(dm, fm), constraints);
		constraints.gridx = 1;
		constraints.gridy = 0;
		this.add(new RightMainPanel(dm, fm), constraints);
	}
}
